package com.he.abstractfactorymodel;

import com.he.abstractfactorymodel.factory.PeopleFactory;
import com.he.abstractfactorymodel.factory.concretepeople.Manfactory;
import com.he.abstractfactorymodel.factory.concretepeople.WoManfactory;
import com.he.abstractfactorymodel.product.People;

public class Client {
    public static void main(String[] args) {
        PeopleFactory manfactory = new Manfactory();
        PeopleFactory woManfactory = new WoManfactory();
        People blackPeople = manfactory.createBlackPeople();
        blackPeople.sex();
        People whitePeople = woManfactory.createWhitePeople();
        whitePeople.sex();
    }
}
